class Solution:
    # 返回镜像树的根节点
    def Mirror(self, root):
        # write code here
        if not root:
            return None
        node = root.left
        root.left = root.right
        root.right = node
        self.Mirror(root.right)
        self.Mirror(root.left)
        return root